//
//  Product.swift
//  HttpStydu
//
//  Created by yongkang on 2017/8/11.
//  Copyright © 2017年 sheng. All rights reserved.
//

import ObjectMapper

class Product: Mappable {
    
    
    var brand_id: Int?
    var brand_order: Int?
    var category_id: Int?
    var cover_image_url: String?
    var created_at: Int?
    var describe: String?
    var editor_id: Int?
    var favorites_count: Int?
    var id: Int?
    var image_urls: [String]?
    var is_favorite: Bool?
    var name: String?
    var price: String?
    var purchase_id: Int?
    var purchase_status: Int?
    var purchase_type: Int?
    var purchase_url: String?
    var subcategory_id: Int?
    var updated_at: Int?
    var url: String?
    
    
    required init?(map: Map){
        
    }
    
    func mapping(map: Map) {
        brand_id <- map["brand_id"]
        brand_order <- map["brand_order"]
        category_id <- map["category_id"]
        cover_image_url <- map["cover_image_url"]
        created_at <- map["created_at"]
        describe <- map["describe"]
        editor_id <- map["editor_id"]
        favorites_count <- map["favorites_count"]
        id <- map["id"]
        image_urls <- map["image_urls"]
        is_favorite <- map["is_favorite"]
        name <- map["name"]
        price <- map["price"]
        purchase_id <- map["purchase_id"]
        purchase_status <- map["purchase_status"]
        purchase_type <- map["purchase_type"]
        purchase_url <- map["purchase_url"]
        subcategory_id <- map["subcategory_id"]
        updated_at <- map["updated_at"]
        url <- map["url"]
        
    }
    
    
    
    
    
    
    
}
